\(\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x))^3 \, dx\) [1203]
Optimal result
Integrand size = 25, antiderivative size = 302 \[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x))^3 \, dx=-\left ((a c-b d) \left (8 a b c d-a^2 \left (c^2-3 d^2\right )+b^2 \left (3 c^2-d^2\right )\right ) x\right )+\frac {(b c+a d) \left (8 a b c d+b^2 \left (c^2-3 d^2\right )-a^2 \left (3 c^2-d^2\right )\right ) \log (\cos (e+f x))}{f}+\frac {d \left (2 a^3 c d-6 a b^2 c d+3 a^2 b \left (c^2-d^2\right )-b^3 \left (c^2-d^2\right )\right ) \tan (e+f x)}{f}+\frac {\left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right ) (c+d \tan (e+f x))^2}{2 f}+\frac {b \left (3 a^2-b^2\right ) (c+d \tan (e+f x))^3}{3 f}-\frac {b^2 (b c-11 a d) (c+d \tan (e+f x))^4}{20 d^2 f}+\frac {b^2 (a+b \tan (e+f x)) (c+d \tan (e+f x))^4}{5 d f}
\]
[Out]
-(a*c-b*d)*(8*a*b*c*d-a^2*(c^2-3*d^2)+b^2*(3*c^2-d^2))*x+(a*d+b*c)*(8*a*b*c*d+b^2*(c^2-3*d^2)-a^2*(3*c^2-d^2))
*ln(cos(f*x+e))/f+d*(2*a^3*c*d-6*a*b^2*c*d+3*a^2*b*(c^2-d^2)-b^3*(c^2-d^2))*tan(f*x+e)/f+1/2*(a^3*d+3*a^2*b*c-
3*a*b^2*d-b^3*c)*(c+d*tan(f*x+e))^2/f+1/3*b*(3*a^2-b^2)*(c+d*tan(f*x+e))^3/f-1/20*b^2*(-11*a*d+b*c)*(c+d*tan(f
*x+e))^4/d^2/f+1/5*b^2*(a+b*tan(f*x+e))*(c+d*tan(f*x+e))^4/d/f
Rubi [A] (verified)
Time = 0.58 (sec) , antiderivative size = 302, normalized size of antiderivative = 1.00, number of
steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3647, 3711, 3609, 3606, 3556}
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x))^3 \, dx=\frac {(a d+b c) \left (-\left (a^2 \left (3 c^2-d^2\right )\right )+8 a b c d+b^2 \left (c^2-3 d^2\right )\right ) \log (\cos (e+f x))}{f}-x (a c-b d) \left (-\left (a^2 \left (c^2-3 d^2\right )\right )+8 a b c d+b^2 \left (3 c^2-d^2\right )\right )+\frac {b \left (3 a^2-b^2\right ) (c+d \tan (e+f x))^3}{3 f}+\frac {d \left (2 a^3 c d+3 a^2 b \left (c^2-d^2\right )-6 a b^2 c d-b^3 \left (c^2-d^2\right )\right ) \tan (e+f x)}{f}+\frac {\left (a^3 d+3 a^2 b c-3 a b^2 d-b^3 c\right ) (c+d \tan (e+f x))^2}{2 f}-\frac {b^2 (b c-11 a d) (c+d \tan (e+f x))^4}{20 d^2 f}+\frac {b^2 (a+b \tan (e+f x)) (c+d \tan (e+f x))^4}{5 d f}
\]
[In]
Int[(a + b*Tan[e + f*x])^3*(c + d*Tan[e + f*x])^3,x]
[Out]
-((a*c - b*d)*(8*a*b*c*d - a^2*(c^2 - 3*d^2) + b^2*(3*c^2 - d^2))*x) + ((b*c + a*d)*(8*a*b*c*d + b^2*(c^2 - 3*
d^2) - a^2*(3*c^2 - d^2))*Log[Cos[e + f*x]])/f + (d*(2*a^3*c*d - 6*a*b^2*c*d + 3*a^2*b*(c^2 - d^2) - b^3*(c^2
- d^2))*Tan[e + f*x])/f + ((3*a^2*b*c - b^3*c + a^3*d - 3*a*b^2*d)*(c + d*Tan[e + f*x])^2)/(2*f) + (b*(3*a^2 -
b^2)*(c + d*Tan[e + f*x])^3)/(3*f) - (b^2*(b*c - 11*a*d)*(c + d*Tan[e + f*x])^4)/(20*d^2*f) + (b^2*(a + b*Tan
[e + f*x])*(c + d*Tan[e + f*x])^4)/(5*d*f)
Rule 3556
Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]
Rule 3606
Int[((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(a*c - b
*d)*x, x] + (Dist[b*c + a*d, Int[Tan[e + f*x], x], x] + Simp[b*d*(Tan[e + f*x]/f), x]) /; FreeQ[{a, b, c, d, e
, f}, x] && NeQ[b*c - a*d, 0] && NeQ[b*c + a*d, 0]
Rule 3609
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[d*
((a + b*Tan[e + f*x])^m/(f*m)), x] + Int[(a + b*Tan[e + f*x])^(m - 1)*Simp[a*c - b*d + (b*c + a*d)*Tan[e + f*x
], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && GtQ[m, 0]
Rule 3647
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Si
mp[b^2*(a + b*Tan[e + f*x])^(m - 2)*((c + d*Tan[e + f*x])^(n + 1)/(d*f*(m + n - 1))), x] + Dist[1/(d*(m + n -
1)), Int[(a + b*Tan[e + f*x])^(m - 3)*(c + d*Tan[e + f*x])^n*Simp[a^3*d*(m + n - 1) - b^2*(b*c*(m - 2) + a*d*(
1 + n)) + b*d*(m + n - 1)*(3*a^2 - b^2)*Tan[e + f*x] - b^2*(b*c*(m - 2) - a*d*(3*m + 2*n - 4))*Tan[e + f*x]^2,
x], x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && NeQ[c^2 + d^2, 0]
&& IntegerQ[2*m] && GtQ[m, 2] && (GeQ[n, -1] || IntegerQ[m]) && !(IGtQ[n, 2] && ( !IntegerQ[m] || (EqQ[c, 0]
&& NeQ[a, 0])))
Rule 3711
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)] + (C_.)*tan[(e_.) + (
f_.)*(x_)]^2), x_Symbol] :> Simp[C*((a + b*Tan[e + f*x])^(m + 1)/(b*f*(m + 1))), x] + Int[(a + b*Tan[e + f*x])
^m*Simp[A - C + B*Tan[e + f*x], x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] && NeQ[A*b^2 - a*b*B + a^2*C, 0]
&& !LeQ[m, -1]
Rubi steps \begin{align*}
\text {integral}& = \frac {b^2 (a+b \tan (e+f x)) (c+d \tan (e+f x))^4}{5 d f}+\frac {\int (c+d \tan (e+f x))^3 \left (5 a^3 d-b^2 (b c+4 a d)+5 b \left (3 a^2-b^2\right ) d \tan (e+f x)-b^2 (b c-11 a d) \tan ^2(e+f x)\right ) \, dx}{5 d} \\ & = -\frac {b^2 (b c-11 a d) (c+d \tan (e+f x))^4}{20 d^2 f}+\frac {b^2 (a+b \tan (e+f x)) (c+d \tan (e+f x))^4}{5 d f}+\frac {\int (c+d \tan (e+f x))^3 \left (5 a \left (a^2-3 b^2\right ) d+5 b \left (3 a^2-b^2\right ) d \tan (e+f x)\right ) \, dx}{5 d} \\ & = \frac {b \left (3 a^2-b^2\right ) (c+d \tan (e+f x))^3}{3 f}-\frac {b^2 (b c-11 a d) (c+d \tan (e+f x))^4}{20 d^2 f}+\frac {b^2 (a+b \tan (e+f x)) (c+d \tan (e+f x))^4}{5 d f}+\frac {\int (c+d \tan (e+f x))^2 \left (5 d \left (a^3 c-3 a b^2 c-3 a^2 b d+b^3 d\right )+5 d \left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right ) \tan (e+f x)\right ) \, dx}{5 d} \\ & = \frac {\left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right ) (c+d \tan (e+f x))^2}{2 f}+\frac {b \left (3 a^2-b^2\right ) (c+d \tan (e+f x))^3}{3 f}-\frac {b^2 (b c-11 a d) (c+d \tan (e+f x))^4}{20 d^2 f}+\frac {b^2 (a+b \tan (e+f x)) (c+d \tan (e+f x))^4}{5 d f}+\frac {\int (c+d \tan (e+f x)) \left (-5 d \left (6 a^2 b c d-2 b^3 c d-a^3 \left (c^2-d^2\right )+3 a b^2 \left (c^2-d^2\right )\right )+5 d \left (2 a^3 c d-6 a b^2 c d+3 a^2 b \left (c^2-d^2\right )-b^3 \left (c^2-d^2\right )\right ) \tan (e+f x)\right ) \, dx}{5 d} \\ & = -\left ((a c-b d) \left (8 a b c d-a^2 \left (c^2-3 d^2\right )+b^2 \left (3 c^2-d^2\right )\right ) x\right )+\frac {d \left (2 a^3 c d-6 a b^2 c d+3 a^2 b \left (c^2-d^2\right )-b^3 \left (c^2-d^2\right )\right ) \tan (e+f x)}{f}+\frac {\left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right ) (c+d \tan (e+f x))^2}{2 f}+\frac {b \left (3 a^2-b^2\right ) (c+d \tan (e+f x))^3}{3 f}-\frac {b^2 (b c-11 a d) (c+d \tan (e+f x))^4}{20 d^2 f}+\frac {b^2 (a+b \tan (e+f x)) (c+d \tan (e+f x))^4}{5 d f}+\frac {\left (-5 d^2 \left (6 a^2 b c d-2 b^3 c d-a^3 \left (c^2-d^2\right )+3 a b^2 \left (c^2-d^2\right )\right )+5 c d \left (2 a^3 c d-6 a b^2 c d+3 a^2 b \left (c^2-d^2\right )-b^3 \left (c^2-d^2\right )\right )\right ) \int \tan (e+f x) \, dx}{5 d} \\ & = -\left ((a c-b d) \left (8 a b c d-a^2 \left (c^2-3 d^2\right )+b^2 \left (3 c^2-d^2\right )\right ) x\right )-\frac {(b c+a d) \left (3 a^2 c^2-b^2 c^2-8 a b c d-a^2 d^2+3 b^2 d^2\right ) \log (\cos (e+f x))}{f}+\frac {d \left (2 a^3 c d-6 a b^2 c d+3 a^2 b \left (c^2-d^2\right )-b^3 \left (c^2-d^2\right )\right ) \tan (e+f x)}{f}+\frac {\left (3 a^2 b c-b^3 c+a^3 d-3 a b^2 d\right ) (c+d \tan (e+f x))^2}{2 f}+\frac {b \left (3 a^2-b^2\right ) (c+d \tan (e+f x))^3}{3 f}-\frac {b^2 (b c-11 a d) (c+d \tan (e+f x))^4}{20 d^2 f}+\frac {b^2 (a+b \tan (e+f x)) (c+d \tan (e+f x))^4}{5 d f} \\
\end{align*}
Mathematica [C] (verified)
Result contains complex when optimal does not.
Time = 6.43 (sec) , antiderivative size = 299, normalized size of antiderivative = 0.99
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x))^3 \, dx=\frac {b^2 (a+b \tan (e+f x)) (c+d \tan (e+f x))^4}{5 d f}+\frac {-\frac {b^2 (b c-11 a d) (c+d \tan (e+f x))^4}{4 d f}-\frac {5 \left (3 \left (3 a^2 b c-b^3 c-a^3 d+3 a b^2 d\right ) \left ((i c-d)^3 \log (i-\tan (e+f x))-(i c+d)^3 \log (i+\tan (e+f x))+6 c d^2 \tan (e+f x)+d^3 \tan ^2(e+f x)\right )+b \left (3 a^2-b^2\right ) \left (3 i (c+i d)^4 \log (i-\tan (e+f x))-3 i (c-i d)^4 \log (i+\tan (e+f x))-6 d^2 \left (6 c^2-d^2\right ) \tan (e+f x)-12 c d^3 \tan ^2(e+f x)-2 d^4 \tan ^3(e+f x)\right )\right )}{6 f}}{5 d}
\]
[In]
Integrate[(a + b*Tan[e + f*x])^3*(c + d*Tan[e + f*x])^3,x]
[Out]
(b^2*(a + b*Tan[e + f*x])*(c + d*Tan[e + f*x])^4)/(5*d*f) + (-1/4*(b^2*(b*c - 11*a*d)*(c + d*Tan[e + f*x])^4)/
(d*f) - (5*(3*(3*a^2*b*c - b^3*c - a^3*d + 3*a*b^2*d)*((I*c - d)^3*Log[I - Tan[e + f*x]] - (I*c + d)^3*Log[I +
Tan[e + f*x]] + 6*c*d^2*Tan[e + f*x] + d^3*Tan[e + f*x]^2) + b*(3*a^2 - b^2)*((3*I)*(c + I*d)^4*Log[I - Tan[e
+ f*x]] - (3*I)*(c - I*d)^4*Log[I + Tan[e + f*x]] - 6*d^2*(6*c^2 - d^2)*Tan[e + f*x] - 12*c*d^3*Tan[e + f*x]^
2 - 2*d^4*Tan[e + f*x]^3)))/(6*f))/(5*d)
Maple [A] (verified)
Time = 0.34 (sec) , antiderivative size = 319, normalized size of antiderivative = 1.06
| | |
method | result | size |
| | |
parts |
\(a^{3} c^{3} x +\frac {\left (3 a \,b^{2} d^{3}+3 b^{3} c \,d^{2}\right ) \left (\frac {\left (\tan ^{4}\left (f x +e \right )\right )}{4}-\frac {\left (\tan ^{2}\left (f x +e \right )\right )}{2}+\frac {\ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}\right )}{f}+\frac {\left (3 a^{3} c^{2} d +3 a^{2} b \,c^{3}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2 f}+\frac {\left (3 a^{2} b \,d^{3}+9 a \,b^{2} c \,d^{2}+3 b^{3} c^{2} d \right ) \left (\frac {\left (\tan ^{3}\left (f x +e \right )\right )}{3}-\tan \left (f x +e \right )+\arctan \left (\tan \left (f x +e \right )\right )\right )}{f}+\frac {\left (3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d +3 a \,b^{2} c^{3}\right ) \left (\tan \left (f x +e \right )-\arctan \left (\tan \left (f x +e \right )\right )\right )}{f}+\frac {\left (a^{3} d^{3}+9 a^{2} b c \,d^{2}+9 a \,b^{2} c^{2} d +b^{3} c^{3}\right ) \left (\frac {\left (\tan ^{2}\left (f x +e \right )\right )}{2}-\frac {\ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}\right )}{f}+\frac {b^{3} d^{3} \left (\frac {\left (\tan ^{5}\left (f x +e \right )\right )}{5}-\frac {\left (\tan ^{3}\left (f x +e \right )\right )}{3}+\tan \left (f x +e \right )-\arctan \left (\tan \left (f x +e \right )\right )\right )}{f}\) |
\(319\) |
norman |
\(\left (a^{3} c^{3}-3 a^{3} c \,d^{2}-9 a^{2} b \,c^{2} d +3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}+3 b^{3} c^{2} d -b^{3} d^{3}\right ) x +\frac {\left (3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}+3 a \,b^{2} c^{3}-9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) \tan \left (f x +e \right )}{f}+\frac {\left (a^{3} d^{3}+9 a^{2} b c \,d^{2}+9 a \,b^{2} c^{2} d -3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \left (\tan ^{2}\left (f x +e \right )\right )}{2 f}+\frac {b^{3} d^{3} \left (\tan ^{5}\left (f x +e \right )\right )}{5 f}+\frac {b d \left (3 a^{2} d^{2}+9 a b c d +3 b^{2} c^{2}-b^{2} d^{2}\right ) \left (\tan ^{3}\left (f x +e \right )\right )}{3 f}+\frac {3 b^{2} d^{2} \left (a d +b c \right ) \left (\tan ^{4}\left (f x +e \right )\right )}{4 f}+\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}+3 a^{2} b \,c^{3}-9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}-b^{3} c^{3}+3 b^{3} c \,d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2 f}\) |
\(396\) |
derivativedivides |
\(\frac {\frac {b^{3} d^{3} \left (\tan ^{5}\left (f x +e \right )\right )}{5}+\frac {3 a \,b^{2} d^{3} \left (\tan ^{4}\left (f x +e \right )\right )}{4}+\frac {3 b^{3} c \,d^{2} \left (\tan ^{4}\left (f x +e \right )\right )}{4}+a^{2} b \,d^{3} \left (\tan ^{3}\left (f x +e \right )\right )+3 a \,b^{2} c \,d^{2} \left (\tan ^{3}\left (f x +e \right )\right )+b^{3} c^{2} d \left (\tan ^{3}\left (f x +e \right )\right )-\frac {b^{3} d^{3} \left (\tan ^{3}\left (f x +e \right )\right )}{3}+\frac {a^{3} d^{3} \left (\tan ^{2}\left (f x +e \right )\right )}{2}+\frac {9 a^{2} b c \,d^{2} \left (\tan ^{2}\left (f x +e \right )\right )}{2}+\frac {9 a \,b^{2} c^{2} d \left (\tan ^{2}\left (f x +e \right )\right )}{2}-\frac {3 a \,b^{2} d^{3} \left (\tan ^{2}\left (f x +e \right )\right )}{2}+\frac {b^{3} c^{3} \left (\tan ^{2}\left (f x +e \right )\right )}{2}-\frac {3 b^{3} c \,d^{2} \left (\tan ^{2}\left (f x +e \right )\right )}{2}+3 a^{3} c \,d^{2} \tan \left (f x +e \right )+9 a^{2} b \,c^{2} d \tan \left (f x +e \right )-3 a^{2} b \,d^{3} \tan \left (f x +e \right )+3 a \,b^{2} c^{3} \tan \left (f x +e \right )-9 a \,b^{2} c \,d^{2} \tan \left (f x +e \right )-3 b^{3} c^{2} d \tan \left (f x +e \right )+b^{3} d^{3} \tan \left (f x +e \right )+\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}+3 a^{2} b \,c^{3}-9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}-b^{3} c^{3}+3 b^{3} c \,d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}+\left (a^{3} c^{3}-3 a^{3} c \,d^{2}-9 a^{2} b \,c^{2} d +3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}+3 b^{3} c^{2} d -b^{3} d^{3}\right ) \arctan \left (\tan \left (f x +e \right )\right )}{f}\) |
\(495\) |
default |
\(\frac {\frac {b^{3} d^{3} \left (\tan ^{5}\left (f x +e \right )\right )}{5}+\frac {3 a \,b^{2} d^{3} \left (\tan ^{4}\left (f x +e \right )\right )}{4}+\frac {3 b^{3} c \,d^{2} \left (\tan ^{4}\left (f x +e \right )\right )}{4}+a^{2} b \,d^{3} \left (\tan ^{3}\left (f x +e \right )\right )+3 a \,b^{2} c \,d^{2} \left (\tan ^{3}\left (f x +e \right )\right )+b^{3} c^{2} d \left (\tan ^{3}\left (f x +e \right )\right )-\frac {b^{3} d^{3} \left (\tan ^{3}\left (f x +e \right )\right )}{3}+\frac {a^{3} d^{3} \left (\tan ^{2}\left (f x +e \right )\right )}{2}+\frac {9 a^{2} b c \,d^{2} \left (\tan ^{2}\left (f x +e \right )\right )}{2}+\frac {9 a \,b^{2} c^{2} d \left (\tan ^{2}\left (f x +e \right )\right )}{2}-\frac {3 a \,b^{2} d^{3} \left (\tan ^{2}\left (f x +e \right )\right )}{2}+\frac {b^{3} c^{3} \left (\tan ^{2}\left (f x +e \right )\right )}{2}-\frac {3 b^{3} c \,d^{2} \left (\tan ^{2}\left (f x +e \right )\right )}{2}+3 a^{3} c \,d^{2} \tan \left (f x +e \right )+9 a^{2} b \,c^{2} d \tan \left (f x +e \right )-3 a^{2} b \,d^{3} \tan \left (f x +e \right )+3 a \,b^{2} c^{3} \tan \left (f x +e \right )-9 a \,b^{2} c \,d^{2} \tan \left (f x +e \right )-3 b^{3} c^{2} d \tan \left (f x +e \right )+b^{3} d^{3} \tan \left (f x +e \right )+\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}+3 a^{2} b \,c^{3}-9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}-b^{3} c^{3}+3 b^{3} c \,d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}+\left (a^{3} c^{3}-3 a^{3} c \,d^{2}-9 a^{2} b \,c^{2} d +3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}+3 b^{3} c^{2} d -b^{3} d^{3}\right ) \arctan \left (\tan \left (f x +e \right )\right )}{f}\) |
\(495\) |
parallelrisch |
\(\frac {-180 a^{3} c \,d^{2} f x +180 a^{2} b \,d^{3} f x -180 a \,b^{2} c^{3} f x +180 b^{3} c^{2} d f x +60 b^{3} d^{3} \tan \left (f x +e \right )-180 a^{2} b \,d^{3} \tan \left (f x +e \right )+180 a \,b^{2} c^{3} \tan \left (f x +e \right )-180 b^{3} c^{2} d \tan \left (f x +e \right )+180 a^{3} c \,d^{2} \tan \left (f x +e \right )+540 a^{2} b \,c^{2} d \tan \left (f x +e \right )-540 a \,b^{2} c \,d^{2} \tan \left (f x +e \right )+45 a \,b^{2} d^{3} \left (\tan ^{4}\left (f x +e \right )\right )+45 b^{3} c \,d^{2} \left (\tan ^{4}\left (f x +e \right )\right )+60 a^{2} b \,d^{3} \left (\tan ^{3}\left (f x +e \right )\right )+60 b^{3} c^{2} d \left (\tan ^{3}\left (f x +e \right )\right )-90 a \,b^{2} d^{3} \left (\tan ^{2}\left (f x +e \right )\right )-90 b^{3} c \,d^{2} \left (\tan ^{2}\left (f x +e \right )\right )-20 b^{3} d^{3} \left (\tan ^{3}\left (f x +e \right )\right )+30 b^{3} c^{3} \left (\tan ^{2}\left (f x +e \right )\right )+30 a^{3} d^{3} \left (\tan ^{2}\left (f x +e \right )\right )+12 b^{3} d^{3} \left (\tan ^{5}\left (f x +e \right )\right )-30 \ln \left (1+\tan ^{2}\left (f x +e \right )\right ) b^{3} c^{3}-30 \ln \left (1+\tan ^{2}\left (f x +e \right )\right ) a^{3} d^{3}+60 a^{3} c^{3} f x -60 b^{3} d^{3} f x -270 \ln \left (1+\tan ^{2}\left (f x +e \right )\right ) a^{2} b c \,d^{2}-270 \ln \left (1+\tan ^{2}\left (f x +e \right )\right ) a \,b^{2} c^{2} d +90 \ln \left (1+\tan ^{2}\left (f x +e \right )\right ) a^{3} c^{2} d +90 \ln \left (1+\tan ^{2}\left (f x +e \right )\right ) a^{2} b \,c^{3}+90 \ln \left (1+\tan ^{2}\left (f x +e \right )\right ) a \,b^{2} d^{3}+90 \ln \left (1+\tan ^{2}\left (f x +e \right )\right ) b^{3} c \,d^{2}+270 a^{2} b c \,d^{2} \left (\tan ^{2}\left (f x +e \right )\right )+270 a \,b^{2} c^{2} d \left (\tan ^{2}\left (f x +e \right )\right )+180 a \,b^{2} c \,d^{2} \left (\tan ^{3}\left (f x +e \right )\right )-540 a^{2} b \,c^{2} d f x +540 a \,b^{2} c \,d^{2} f x}{60 f}\) |
\(581\) |
risch |
\(\text {Expression too large to display}\) |
\(1519\) |
| | |
|
|
|
[In]
int((a+b*tan(f*x+e))^3*(c+d*tan(f*x+e))^3,x,method=_RETURNVERBOSE)
[Out]
a^3*c^3*x+(3*a*b^2*d^3+3*b^3*c*d^2)/f*(1/4*tan(f*x+e)^4-1/2*tan(f*x+e)^2+1/2*ln(1+tan(f*x+e)^2))+1/2*(3*a^3*c^
2*d+3*a^2*b*c^3)/f*ln(1+tan(f*x+e)^2)+(3*a^2*b*d^3+9*a*b^2*c*d^2+3*b^3*c^2*d)/f*(1/3*tan(f*x+e)^3-tan(f*x+e)+a
rctan(tan(f*x+e)))+(3*a^3*c*d^2+9*a^2*b*c^2*d+3*a*b^2*c^3)/f*(tan(f*x+e)-arctan(tan(f*x+e)))+(a^3*d^3+9*a^2*b*
c*d^2+9*a*b^2*c^2*d+b^3*c^3)/f*(1/2*tan(f*x+e)^2-1/2*ln(1+tan(f*x+e)^2))+b^3*d^3/f*(1/5*tan(f*x+e)^5-1/3*tan(f
*x+e)^3+tan(f*x+e)-arctan(tan(f*x+e)))
Fricas [A] (verification not implemented)
none
Time = 0.25 (sec) , antiderivative size = 374, normalized size of antiderivative = 1.24
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x))^3 \, dx=\frac {12 \, b^{3} d^{3} \tan \left (f x + e\right )^{5} + 45 \, {\left (b^{3} c d^{2} + a b^{2} d^{3}\right )} \tan \left (f x + e\right )^{4} + 20 \, {\left (3 \, b^{3} c^{2} d + 9 \, a b^{2} c d^{2} + {\left (3 \, a^{2} b - b^{3}\right )} d^{3}\right )} \tan \left (f x + e\right )^{3} + 60 \, {\left ({\left (a^{3} - 3 \, a b^{2}\right )} c^{3} - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{2} d - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c d^{2} + {\left (3 \, a^{2} b - b^{3}\right )} d^{3}\right )} f x + 30 \, {\left (b^{3} c^{3} + 9 \, a b^{2} c^{2} d + 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c d^{2} + {\left (a^{3} - 3 \, a b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )^{2} - 30 \, {\left ({\left (3 \, a^{2} b - b^{3}\right )} c^{3} + 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{2} d - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c d^{2} - {\left (a^{3} - 3 \, a b^{2}\right )} d^{3}\right )} \log \left (\frac {1}{\tan \left (f x + e\right )^{2} + 1}\right ) + 60 \, {\left (3 \, a b^{2} c^{3} + 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{2} d + 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c d^{2} - {\left (3 \, a^{2} b - b^{3}\right )} d^{3}\right )} \tan \left (f x + e\right )}{60 \, f}
\]
[In]
integrate((a+b*tan(f*x+e))^3*(c+d*tan(f*x+e))^3,x, algorithm="fricas")
[Out]
1/60*(12*b^3*d^3*tan(f*x + e)^5 + 45*(b^3*c*d^2 + a*b^2*d^3)*tan(f*x + e)^4 + 20*(3*b^3*c^2*d + 9*a*b^2*c*d^2
+ (3*a^2*b - b^3)*d^3)*tan(f*x + e)^3 + 60*((a^3 - 3*a*b^2)*c^3 - 3*(3*a^2*b - b^3)*c^2*d - 3*(a^3 - 3*a*b^2)*
c*d^2 + (3*a^2*b - b^3)*d^3)*f*x + 30*(b^3*c^3 + 9*a*b^2*c^2*d + 3*(3*a^2*b - b^3)*c*d^2 + (a^3 - 3*a*b^2)*d^3
)*tan(f*x + e)^2 - 30*((3*a^2*b - b^3)*c^3 + 3*(a^3 - 3*a*b^2)*c^2*d - 3*(3*a^2*b - b^3)*c*d^2 - (a^3 - 3*a*b^
2)*d^3)*log(1/(tan(f*x + e)^2 + 1)) + 60*(3*a*b^2*c^3 + 3*(3*a^2*b - b^3)*c^2*d + 3*(a^3 - 3*a*b^2)*c*d^2 - (3
*a^2*b - b^3)*d^3)*tan(f*x + e))/f
Sympy [B] (verification not implemented)
Leaf count of result is larger than twice the leaf count of optimal. 711 vs. \(2 (275) = 550\).
Time = 0.25 (sec) , antiderivative size = 711, normalized size of antiderivative = 2.35
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x))^3 \, dx=\begin {cases} a^{3} c^{3} x + \frac {3 a^{3} c^{2} d \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} - 3 a^{3} c d^{2} x + \frac {3 a^{3} c d^{2} \tan {\left (e + f x \right )}}{f} - \frac {a^{3} d^{3} \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac {a^{3} d^{3} \tan ^{2}{\left (e + f x \right )}}{2 f} + \frac {3 a^{2} b c^{3} \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} - 9 a^{2} b c^{2} d x + \frac {9 a^{2} b c^{2} d \tan {\left (e + f x \right )}}{f} - \frac {9 a^{2} b c d^{2} \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac {9 a^{2} b c d^{2} \tan ^{2}{\left (e + f x \right )}}{2 f} + 3 a^{2} b d^{3} x + \frac {a^{2} b d^{3} \tan ^{3}{\left (e + f x \right )}}{f} - \frac {3 a^{2} b d^{3} \tan {\left (e + f x \right )}}{f} - 3 a b^{2} c^{3} x + \frac {3 a b^{2} c^{3} \tan {\left (e + f x \right )}}{f} - \frac {9 a b^{2} c^{2} d \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac {9 a b^{2} c^{2} d \tan ^{2}{\left (e + f x \right )}}{2 f} + 9 a b^{2} c d^{2} x + \frac {3 a b^{2} c d^{2} \tan ^{3}{\left (e + f x \right )}}{f} - \frac {9 a b^{2} c d^{2} \tan {\left (e + f x \right )}}{f} + \frac {3 a b^{2} d^{3} \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac {3 a b^{2} d^{3} \tan ^{4}{\left (e + f x \right )}}{4 f} - \frac {3 a b^{2} d^{3} \tan ^{2}{\left (e + f x \right )}}{2 f} - \frac {b^{3} c^{3} \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac {b^{3} c^{3} \tan ^{2}{\left (e + f x \right )}}{2 f} + 3 b^{3} c^{2} d x + \frac {b^{3} c^{2} d \tan ^{3}{\left (e + f x \right )}}{f} - \frac {3 b^{3} c^{2} d \tan {\left (e + f x \right )}}{f} + \frac {3 b^{3} c d^{2} \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac {3 b^{3} c d^{2} \tan ^{4}{\left (e + f x \right )}}{4 f} - \frac {3 b^{3} c d^{2} \tan ^{2}{\left (e + f x \right )}}{2 f} - b^{3} d^{3} x + \frac {b^{3} d^{3} \tan ^{5}{\left (e + f x \right )}}{5 f} - \frac {b^{3} d^{3} \tan ^{3}{\left (e + f x \right )}}{3 f} + \frac {b^{3} d^{3} \tan {\left (e + f x \right )}}{f} & \text {for}\: f \neq 0 \\x \left (a + b \tan {\left (e \right )}\right )^{3} \left (c + d \tan {\left (e \right )}\right )^{3} & \text {otherwise} \end {cases}
\]
[In]
integrate((a+b*tan(f*x+e))**3*(c+d*tan(f*x+e))**3,x)
[Out]
Piecewise((a**3*c**3*x + 3*a**3*c**2*d*log(tan(e + f*x)**2 + 1)/(2*f) - 3*a**3*c*d**2*x + 3*a**3*c*d**2*tan(e
+ f*x)/f - a**3*d**3*log(tan(e + f*x)**2 + 1)/(2*f) + a**3*d**3*tan(e + f*x)**2/(2*f) + 3*a**2*b*c**3*log(tan(
e + f*x)**2 + 1)/(2*f) - 9*a**2*b*c**2*d*x + 9*a**2*b*c**2*d*tan(e + f*x)/f - 9*a**2*b*c*d**2*log(tan(e + f*x)
**2 + 1)/(2*f) + 9*a**2*b*c*d**2*tan(e + f*x)**2/(2*f) + 3*a**2*b*d**3*x + a**2*b*d**3*tan(e + f*x)**3/f - 3*a
**2*b*d**3*tan(e + f*x)/f - 3*a*b**2*c**3*x + 3*a*b**2*c**3*tan(e + f*x)/f - 9*a*b**2*c**2*d*log(tan(e + f*x)*
*2 + 1)/(2*f) + 9*a*b**2*c**2*d*tan(e + f*x)**2/(2*f) + 9*a*b**2*c*d**2*x + 3*a*b**2*c*d**2*tan(e + f*x)**3/f
- 9*a*b**2*c*d**2*tan(e + f*x)/f + 3*a*b**2*d**3*log(tan(e + f*x)**2 + 1)/(2*f) + 3*a*b**2*d**3*tan(e + f*x)**
4/(4*f) - 3*a*b**2*d**3*tan(e + f*x)**2/(2*f) - b**3*c**3*log(tan(e + f*x)**2 + 1)/(2*f) + b**3*c**3*tan(e + f
*x)**2/(2*f) + 3*b**3*c**2*d*x + b**3*c**2*d*tan(e + f*x)**3/f - 3*b**3*c**2*d*tan(e + f*x)/f + 3*b**3*c*d**2*
log(tan(e + f*x)**2 + 1)/(2*f) + 3*b**3*c*d**2*tan(e + f*x)**4/(4*f) - 3*b**3*c*d**2*tan(e + f*x)**2/(2*f) - b
**3*d**3*x + b**3*d**3*tan(e + f*x)**5/(5*f) - b**3*d**3*tan(e + f*x)**3/(3*f) + b**3*d**3*tan(e + f*x)/f, Ne(
f, 0)), (x*(a + b*tan(e))**3*(c + d*tan(e))**3, True))
Maxima [A] (verification not implemented)
none
Time = 0.32 (sec) , antiderivative size = 375, normalized size of antiderivative = 1.24
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x))^3 \, dx=\frac {12 \, b^{3} d^{3} \tan \left (f x + e\right )^{5} + 45 \, {\left (b^{3} c d^{2} + a b^{2} d^{3}\right )} \tan \left (f x + e\right )^{4} + 20 \, {\left (3 \, b^{3} c^{2} d + 9 \, a b^{2} c d^{2} + {\left (3 \, a^{2} b - b^{3}\right )} d^{3}\right )} \tan \left (f x + e\right )^{3} + 30 \, {\left (b^{3} c^{3} + 9 \, a b^{2} c^{2} d + 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c d^{2} + {\left (a^{3} - 3 \, a b^{2}\right )} d^{3}\right )} \tan \left (f x + e\right )^{2} + 60 \, {\left ({\left (a^{3} - 3 \, a b^{2}\right )} c^{3} - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{2} d - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c d^{2} + {\left (3 \, a^{2} b - b^{3}\right )} d^{3}\right )} {\left (f x + e\right )} + 30 \, {\left ({\left (3 \, a^{2} b - b^{3}\right )} c^{3} + 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{2} d - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c d^{2} - {\left (a^{3} - 3 \, a b^{2}\right )} d^{3}\right )} \log \left (\tan \left (f x + e\right )^{2} + 1\right ) + 60 \, {\left (3 \, a b^{2} c^{3} + 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{2} d + 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c d^{2} - {\left (3 \, a^{2} b - b^{3}\right )} d^{3}\right )} \tan \left (f x + e\right )}{60 \, f}
\]
[In]
integrate((a+b*tan(f*x+e))^3*(c+d*tan(f*x+e))^3,x, algorithm="maxima")
[Out]
1/60*(12*b^3*d^3*tan(f*x + e)^5 + 45*(b^3*c*d^2 + a*b^2*d^3)*tan(f*x + e)^4 + 20*(3*b^3*c^2*d + 9*a*b^2*c*d^2
+ (3*a^2*b - b^3)*d^3)*tan(f*x + e)^3 + 30*(b^3*c^3 + 9*a*b^2*c^2*d + 3*(3*a^2*b - b^3)*c*d^2 + (a^3 - 3*a*b^2
)*d^3)*tan(f*x + e)^2 + 60*((a^3 - 3*a*b^2)*c^3 - 3*(3*a^2*b - b^3)*c^2*d - 3*(a^3 - 3*a*b^2)*c*d^2 + (3*a^2*b
- b^3)*d^3)*(f*x + e) + 30*((3*a^2*b - b^3)*c^3 + 3*(a^3 - 3*a*b^2)*c^2*d - 3*(3*a^2*b - b^3)*c*d^2 - (a^3 -
3*a*b^2)*d^3)*log(tan(f*x + e)^2 + 1) + 60*(3*a*b^2*c^3 + 3*(3*a^2*b - b^3)*c^2*d + 3*(a^3 - 3*a*b^2)*c*d^2 -
(3*a^2*b - b^3)*d^3)*tan(f*x + e))/f
Giac [B] (verification not implemented)
Leaf count of result is larger than twice the leaf count of optimal. 7309 vs. \(2 (294) = 588\).
Time = 6.89 (sec) , antiderivative size = 7309, normalized size of antiderivative = 24.20
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x))^3 \, dx=\text {Too large to display}
\]
[In]
integrate((a+b*tan(f*x+e))^3*(c+d*tan(f*x+e))^3,x, algorithm="giac")
[Out]
1/60*(60*a^3*c^3*f*x*tan(f*x)^5*tan(e)^5 - 180*a*b^2*c^3*f*x*tan(f*x)^5*tan(e)^5 - 540*a^2*b*c^2*d*f*x*tan(f*x
)^5*tan(e)^5 + 180*b^3*c^2*d*f*x*tan(f*x)^5*tan(e)^5 - 180*a^3*c*d^2*f*x*tan(f*x)^5*tan(e)^5 + 540*a*b^2*c*d^2
*f*x*tan(f*x)^5*tan(e)^5 + 180*a^2*b*d^3*f*x*tan(f*x)^5*tan(e)^5 - 60*b^3*d^3*f*x*tan(f*x)^5*tan(e)^5 - 90*a^2
*b*c^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*
tan(f*x)^5*tan(e)^5 + 30*b^3*c^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + ta
n(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 - 90*a^3*c^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) +
1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 + 270*a*b^2*c^2*d*log(4*(tan(f*x)^2*
tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 + 270
*a^2*b*c*d^2*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2
+ 1))*tan(f*x)^5*tan(e)^5 - 90*b^3*c*d^2*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e
)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 + 30*a^3*d^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan
(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 - 90*a*b^2*d^3*log(4*(tan(f*x)
^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^5*tan(e)^5 -
300*a^3*c^3*f*x*tan(f*x)^4*tan(e)^4 + 900*a*b^2*c^3*f*x*tan(f*x)^4*tan(e)^4 + 2700*a^2*b*c^2*d*f*x*tan(f*x)^4*
tan(e)^4 - 900*b^3*c^2*d*f*x*tan(f*x)^4*tan(e)^4 + 900*a^3*c*d^2*f*x*tan(f*x)^4*tan(e)^4 - 2700*a*b^2*c*d^2*f*
x*tan(f*x)^4*tan(e)^4 - 900*a^2*b*d^3*f*x*tan(f*x)^4*tan(e)^4 + 300*b^3*d^3*f*x*tan(f*x)^4*tan(e)^4 + 30*b^3*c
^3*tan(f*x)^5*tan(e)^5 + 270*a*b^2*c^2*d*tan(f*x)^5*tan(e)^5 + 270*a^2*b*c*d^2*tan(f*x)^5*tan(e)^5 - 135*b^3*c
*d^2*tan(f*x)^5*tan(e)^5 + 30*a^3*d^3*tan(f*x)^5*tan(e)^5 - 135*a*b^2*d^3*tan(f*x)^5*tan(e)^5 + 450*a^2*b*c^3*
log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x
)^4*tan(e)^4 - 150*b^3*c^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)
^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 + 450*a^3*c^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(t
an(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 - 1350*a*b^2*c^2*d*log(4*(tan(f*x)^2*tan(
e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 - 1350*a^
2*b*c*d^2*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1
))*tan(f*x)^4*tan(e)^4 + 450*b^3*c*d^2*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^
2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 - 150*a^3*d^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(
e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 + 450*a*b^2*d^3*log(4*(tan(f*x)
^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^4*tan(e)^4 -
180*a*b^2*c^3*tan(f*x)^5*tan(e)^4 - 540*a^2*b*c^2*d*tan(f*x)^5*tan(e)^4 + 180*b^3*c^2*d*tan(f*x)^5*tan(e)^4 -
180*a^3*c*d^2*tan(f*x)^5*tan(e)^4 + 540*a*b^2*c*d^2*tan(f*x)^5*tan(e)^4 + 180*a^2*b*d^3*tan(f*x)^5*tan(e)^4 -
60*b^3*d^3*tan(f*x)^5*tan(e)^4 - 180*a*b^2*c^3*tan(f*x)^4*tan(e)^5 - 540*a^2*b*c^2*d*tan(f*x)^4*tan(e)^5 + 180
*b^3*c^2*d*tan(f*x)^4*tan(e)^5 - 180*a^3*c*d^2*tan(f*x)^4*tan(e)^5 + 540*a*b^2*c*d^2*tan(f*x)^4*tan(e)^5 + 180
*a^2*b*d^3*tan(f*x)^4*tan(e)^5 - 60*b^3*d^3*tan(f*x)^4*tan(e)^5 + 600*a^3*c^3*f*x*tan(f*x)^3*tan(e)^3 - 1800*a
*b^2*c^3*f*x*tan(f*x)^3*tan(e)^3 - 5400*a^2*b*c^2*d*f*x*tan(f*x)^3*tan(e)^3 + 1800*b^3*c^2*d*f*x*tan(f*x)^3*ta
n(e)^3 - 1800*a^3*c*d^2*f*x*tan(f*x)^3*tan(e)^3 + 5400*a*b^2*c*d^2*f*x*tan(f*x)^3*tan(e)^3 + 1800*a^2*b*d^3*f*
x*tan(f*x)^3*tan(e)^3 - 600*b^3*d^3*f*x*tan(f*x)^3*tan(e)^3 + 30*b^3*c^3*tan(f*x)^5*tan(e)^3 + 270*a*b^2*c^2*d
*tan(f*x)^5*tan(e)^3 + 270*a^2*b*c*d^2*tan(f*x)^5*tan(e)^3 - 90*b^3*c*d^2*tan(f*x)^5*tan(e)^3 + 30*a^3*d^3*tan
(f*x)^5*tan(e)^3 - 90*a*b^2*d^3*tan(f*x)^5*tan(e)^3 - 90*b^3*c^3*tan(f*x)^4*tan(e)^4 - 810*a*b^2*c^2*d*tan(f*x
)^4*tan(e)^4 - 810*a^2*b*c*d^2*tan(f*x)^4*tan(e)^4 + 495*b^3*c*d^2*tan(f*x)^4*tan(e)^4 - 90*a^3*d^3*tan(f*x)^4
*tan(e)^4 + 495*a*b^2*d^3*tan(f*x)^4*tan(e)^4 + 30*b^3*c^3*tan(f*x)^3*tan(e)^5 + 270*a*b^2*c^2*d*tan(f*x)^3*ta
n(e)^5 + 270*a^2*b*c*d^2*tan(f*x)^3*tan(e)^5 - 90*b^3*c*d^2*tan(f*x)^3*tan(e)^5 + 30*a^3*d^3*tan(f*x)^3*tan(e)
^5 - 90*a*b^2*d^3*tan(f*x)^3*tan(e)^5 - 60*b^3*c^2*d*tan(f*x)^5*tan(e)^2 - 180*a*b^2*c*d^2*tan(f*x)^5*tan(e)^2
- 60*a^2*b*d^3*tan(f*x)^5*tan(e)^2 + 20*b^3*d^3*tan(f*x)^5*tan(e)^2 - 900*a^2*b*c^3*log(4*(tan(f*x)^2*tan(e)^
2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 + 300*b^3*c^
3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f
*x)^3*tan(e)^3 - 900*a^3*c^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(
f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 + 2700*a*b^2*c^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e)
+ 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 + 2700*a^2*b*c*d^2*log(4*(tan(f*x)
^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 -
900*b^3*c*d^2*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2
+ 1))*tan(f*x)^3*tan(e)^3 + 300*a^3*d^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e
)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 - 900*a*b^2*d^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*
tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^3*tan(e)^3 + 720*a*b^2*c^3*tan(f*x)^4*
tan(e)^3 + 2160*a^2*b*c^2*d*tan(f*x)^4*tan(e)^3 - 900*b^3*c^2*d*tan(f*x)^4*tan(e)^3 + 720*a^3*c*d^2*tan(f*x)^4
*tan(e)^3 - 2700*a*b^2*c*d^2*tan(f*x)^4*tan(e)^3 - 900*a^2*b*d^3*tan(f*x)^4*tan(e)^3 + 300*b^3*d^3*tan(f*x)^4*
tan(e)^3 + 720*a*b^2*c^3*tan(f*x)^3*tan(e)^4 + 2160*a^2*b*c^2*d*tan(f*x)^3*tan(e)^4 - 900*b^3*c^2*d*tan(f*x)^3
*tan(e)^4 + 720*a^3*c*d^2*tan(f*x)^3*tan(e)^4 - 2700*a*b^2*c*d^2*tan(f*x)^3*tan(e)^4 - 900*a^2*b*d^3*tan(f*x)^
3*tan(e)^4 + 300*b^3*d^3*tan(f*x)^3*tan(e)^4 - 60*b^3*c^2*d*tan(f*x)^2*tan(e)^5 - 180*a*b^2*c*d^2*tan(f*x)^2*t
an(e)^5 - 60*a^2*b*d^3*tan(f*x)^2*tan(e)^5 + 20*b^3*d^3*tan(f*x)^2*tan(e)^5 + 45*b^3*c*d^2*tan(f*x)^5*tan(e) +
45*a*b^2*d^3*tan(f*x)^5*tan(e) - 600*a^3*c^3*f*x*tan(f*x)^2*tan(e)^2 + 1800*a*b^2*c^3*f*x*tan(f*x)^2*tan(e)^2
+ 5400*a^2*b*c^2*d*f*x*tan(f*x)^2*tan(e)^2 - 1800*b^3*c^2*d*f*x*tan(f*x)^2*tan(e)^2 + 1800*a^3*c*d^2*f*x*tan(
f*x)^2*tan(e)^2 - 5400*a*b^2*c*d^2*f*x*tan(f*x)^2*tan(e)^2 - 1800*a^2*b*d^3*f*x*tan(f*x)^2*tan(e)^2 + 600*b^3*
d^3*f*x*tan(f*x)^2*tan(e)^2 - 90*b^3*c^3*tan(f*x)^4*tan(e)^2 - 810*a*b^2*c^2*d*tan(f*x)^4*tan(e)^2 - 810*a^2*b
*c*d^2*tan(f*x)^4*tan(e)^2 + 450*b^3*c*d^2*tan(f*x)^4*tan(e)^2 - 90*a^3*d^3*tan(f*x)^4*tan(e)^2 + 450*a*b^2*d^
3*tan(f*x)^4*tan(e)^2 + 120*b^3*c^3*tan(f*x)^3*tan(e)^3 + 1080*a*b^2*c^2*d*tan(f*x)^3*tan(e)^3 + 1080*a^2*b*c*
d^2*tan(f*x)^3*tan(e)^3 - 540*b^3*c*d^2*tan(f*x)^3*tan(e)^3 + 120*a^3*d^3*tan(f*x)^3*tan(e)^3 - 540*a*b^2*d^3*
tan(f*x)^3*tan(e)^3 - 90*b^3*c^3*tan(f*x)^2*tan(e)^4 - 810*a*b^2*c^2*d*tan(f*x)^2*tan(e)^4 - 810*a^2*b*c*d^2*t
an(f*x)^2*tan(e)^4 + 450*b^3*c*d^2*tan(f*x)^2*tan(e)^4 - 90*a^3*d^3*tan(f*x)^2*tan(e)^4 + 450*a*b^2*d^3*tan(f*
x)^2*tan(e)^4 + 45*b^3*c*d^2*tan(f*x)*tan(e)^5 + 45*a*b^2*d^3*tan(f*x)*tan(e)^5 - 12*b^3*d^3*tan(f*x)^5 + 120*
b^3*c^2*d*tan(f*x)^4*tan(e) + 360*a*b^2*c*d^2*tan(f*x)^4*tan(e) + 120*a^2*b*d^3*tan(f*x)^4*tan(e) - 100*b^3*d^
3*tan(f*x)^4*tan(e) + 900*a^2*b*c^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 +
tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 - 300*b^3*c^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e)
+ 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 + 900*a^3*c^2*d*log(4*(tan(f*x)^2*
tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 - 270
0*a*b^2*c^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2
+ 1))*tan(f*x)^2*tan(e)^2 - 2700*a^2*b*c*d^2*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*
tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 + 900*b^3*c*d^2*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(
f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(e)^2 - 300*a^3*d^3*log(4*(t
an(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)^2*tan(
e)^2 + 900*a*b^2*d^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + t
an(e)^2 + 1))*tan(f*x)^2*tan(e)^2 - 1080*a*b^2*c^3*tan(f*x)^3*tan(e)^2 - 3240*a^2*b*c^2*d*tan(f*x)^3*tan(e)^2
+ 1440*b^3*c^2*d*tan(f*x)^3*tan(e)^2 - 1080*a^3*c*d^2*tan(f*x)^3*tan(e)^2 + 4320*a*b^2*c*d^2*tan(f*x)^3*tan(e)
^2 + 1440*a^2*b*d^3*tan(f*x)^3*tan(e)^2 - 600*b^3*d^3*tan(f*x)^3*tan(e)^2 - 1080*a*b^2*c^3*tan(f*x)^2*tan(e)^3
- 3240*a^2*b*c^2*d*tan(f*x)^2*tan(e)^3 + 1440*b^3*c^2*d*tan(f*x)^2*tan(e)^3 - 1080*a^3*c*d^2*tan(f*x)^2*tan(e
)^3 + 4320*a*b^2*c*d^2*tan(f*x)^2*tan(e)^3 + 1440*a^2*b*d^3*tan(f*x)^2*tan(e)^3 - 600*b^3*d^3*tan(f*x)^2*tan(e
)^3 + 120*b^3*c^2*d*tan(f*x)*tan(e)^4 + 360*a*b^2*c*d^2*tan(f*x)*tan(e)^4 + 120*a^2*b*d^3*tan(f*x)*tan(e)^4 -
100*b^3*d^3*tan(f*x)*tan(e)^4 - 12*b^3*d^3*tan(e)^5 - 45*b^3*c*d^2*tan(f*x)^4 - 45*a*b^2*d^3*tan(f*x)^4 + 300*
a^3*c^3*f*x*tan(f*x)*tan(e) - 900*a*b^2*c^3*f*x*tan(f*x)*tan(e) - 2700*a^2*b*c^2*d*f*x*tan(f*x)*tan(e) + 900*b
^3*c^2*d*f*x*tan(f*x)*tan(e) - 900*a^3*c*d^2*f*x*tan(f*x)*tan(e) + 2700*a*b^2*c*d^2*f*x*tan(f*x)*tan(e) + 900*
a^2*b*d^3*f*x*tan(f*x)*tan(e) - 300*b^3*d^3*f*x*tan(f*x)*tan(e) + 90*b^3*c^3*tan(f*x)^3*tan(e) + 810*a*b^2*c^2
*d*tan(f*x)^3*tan(e) + 810*a^2*b*c*d^2*tan(f*x)^3*tan(e) - 450*b^3*c*d^2*tan(f*x)^3*tan(e) + 90*a^3*d^3*tan(f*
x)^3*tan(e) - 450*a*b^2*d^3*tan(f*x)^3*tan(e) - 120*b^3*c^3*tan(f*x)^2*tan(e)^2 - 1080*a*b^2*c^2*d*tan(f*x)^2*
tan(e)^2 - 1080*a^2*b*c*d^2*tan(f*x)^2*tan(e)^2 + 540*b^3*c*d^2*tan(f*x)^2*tan(e)^2 - 120*a^3*d^3*tan(f*x)^2*t
an(e)^2 + 540*a*b^2*d^3*tan(f*x)^2*tan(e)^2 + 90*b^3*c^3*tan(f*x)*tan(e)^3 + 810*a*b^2*c^2*d*tan(f*x)*tan(e)^3
+ 810*a^2*b*c*d^2*tan(f*x)*tan(e)^3 - 450*b^3*c*d^2*tan(f*x)*tan(e)^3 + 90*a^3*d^3*tan(f*x)*tan(e)^3 - 450*a*
b^2*d^3*tan(f*x)*tan(e)^3 - 45*b^3*c*d^2*tan(e)^4 - 45*a*b^2*d^3*tan(e)^4 - 60*b^3*c^2*d*tan(f*x)^3 - 180*a*b^
2*c*d^2*tan(f*x)^3 - 60*a^2*b*d^3*tan(f*x)^3 + 20*b^3*d^3*tan(f*x)^3 - 450*a^2*b*c^3*log(4*(tan(f*x)^2*tan(e)^
2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) + 150*b^3*c^3*lo
g(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*
tan(e) - 450*a^3*c^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 +
tan(e)^2 + 1))*tan(f*x)*tan(e) + 1350*a*b^2*c^2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*
x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) + 1350*a^2*b*c*d^2*log(4*(tan(f*x)^2*tan(e)^2 - 2*
tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) - 450*b^3*c*d^2*log(4*
(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(
e) + 150*a^3*d^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e
)^2 + 1))*tan(f*x)*tan(e) - 450*a*b^2*d^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(
e)^2 + tan(f*x)^2 + tan(e)^2 + 1))*tan(f*x)*tan(e) + 720*a*b^2*c^3*tan(f*x)^2*tan(e) + 2160*a^2*b*c^2*d*tan(f*
x)^2*tan(e) - 900*b^3*c^2*d*tan(f*x)^2*tan(e) + 720*a^3*c*d^2*tan(f*x)^2*tan(e) - 2700*a*b^2*c*d^2*tan(f*x)^2*
tan(e) - 900*a^2*b*d^3*tan(f*x)^2*tan(e) + 300*b^3*d^3*tan(f*x)^2*tan(e) + 720*a*b^2*c^3*tan(f*x)*tan(e)^2 + 2
160*a^2*b*c^2*d*tan(f*x)*tan(e)^2 - 900*b^3*c^2*d*tan(f*x)*tan(e)^2 + 720*a^3*c*d^2*tan(f*x)*tan(e)^2 - 2700*a
*b^2*c*d^2*tan(f*x)*tan(e)^2 - 900*a^2*b*d^3*tan(f*x)*tan(e)^2 + 300*b^3*d^3*tan(f*x)*tan(e)^2 - 60*b^3*c^2*d*
tan(e)^3 - 180*a*b^2*c*d^2*tan(e)^3 - 60*a^2*b*d^3*tan(e)^3 + 20*b^3*d^3*tan(e)^3 - 60*a^3*c^3*f*x + 180*a*b^2
*c^3*f*x + 540*a^2*b*c^2*d*f*x - 180*b^3*c^2*d*f*x + 180*a^3*c*d^2*f*x - 540*a*b^2*c*d^2*f*x - 180*a^2*b*d^3*f
*x + 60*b^3*d^3*f*x - 30*b^3*c^3*tan(f*x)^2 - 270*a*b^2*c^2*d*tan(f*x)^2 - 270*a^2*b*c*d^2*tan(f*x)^2 + 90*b^3
*c*d^2*tan(f*x)^2 - 30*a^3*d^3*tan(f*x)^2 + 90*a*b^2*d^3*tan(f*x)^2 + 90*b^3*c^3*tan(f*x)*tan(e) + 810*a*b^2*c
^2*d*tan(f*x)*tan(e) + 810*a^2*b*c*d^2*tan(f*x)*tan(e) - 495*b^3*c*d^2*tan(f*x)*tan(e) + 90*a^3*d^3*tan(f*x)*t
an(e) - 495*a*b^2*d^3*tan(f*x)*tan(e) - 30*b^3*c^3*tan(e)^2 - 270*a*b^2*c^2*d*tan(e)^2 - 270*a^2*b*c*d^2*tan(e
)^2 + 90*b^3*c*d^2*tan(e)^2 - 30*a^3*d^3*tan(e)^2 + 90*a*b^2*d^3*tan(e)^2 + 90*a^2*b*c^3*log(4*(tan(f*x)^2*tan
(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) - 30*b^3*c^3*log(4*(tan(f*x)
^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) + 90*a^3*c^2*d*log(4*(
tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) - 270*a*b^2*c^
2*d*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^2 + 1)) - 2
70*a^2*b*c*d^2*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 + tan(e)^
2 + 1)) + 90*b^3*c*d^2*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*x)^2 +
tan(e)^2 + 1)) - 30*a^3*d^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2 + tan(f*
x)^2 + tan(e)^2 + 1)) + 90*a*b^2*d^3*log(4*(tan(f*x)^2*tan(e)^2 - 2*tan(f*x)*tan(e) + 1)/(tan(f*x)^2*tan(e)^2
+ tan(f*x)^2 + tan(e)^2 + 1)) - 180*a*b^2*c^3*tan(f*x) - 540*a^2*b*c^2*d*tan(f*x) + 180*b^3*c^2*d*tan(f*x) - 1
80*a^3*c*d^2*tan(f*x) + 540*a*b^2*c*d^2*tan(f*x) + 180*a^2*b*d^3*tan(f*x) - 60*b^3*d^3*tan(f*x) - 180*a*b^2*c^
3*tan(e) - 540*a^2*b*c^2*d*tan(e) + 180*b^3*c^2*d*tan(e) - 180*a^3*c*d^2*tan(e) + 540*a*b^2*c*d^2*tan(e) + 180
*a^2*b*d^3*tan(e) - 60*b^3*d^3*tan(e) - 30*b^3*c^3 - 270*a*b^2*c^2*d - 270*a^2*b*c*d^2 + 135*b^3*c*d^2 - 30*a^
3*d^3 + 135*a*b^2*d^3)/(f*tan(f*x)^5*tan(e)^5 - 5*f*tan(f*x)^4*tan(e)^4 + 10*f*tan(f*x)^3*tan(e)^3 - 10*f*tan(
f*x)^2*tan(e)^2 + 5*f*tan(f*x)*tan(e) - f)
Mupad [B] (verification not implemented)
Time = 6.16 (sec) , antiderivative size = 494, normalized size of antiderivative = 1.64
\[
\int (a+b \tan (e+f x))^3 (c+d \tan (e+f x))^3 \, dx=\frac {\mathrm {tan}\left (e+f\,x\right )\,\left (b^3\,d^3+3\,a\,c\,\left (a^2\,d^2+3\,a\,b\,c\,d+b^2\,c^2\right )-3\,b\,d\,\left (a^2\,d^2+3\,a\,b\,c\,d+b^2\,c^2\right )\right )}{f}-\frac {\ln \left ({\mathrm {tan}\left (e+f\,x\right )}^2+1\right )\,\left (-\frac {3\,a^3\,c^2\,d}{2}+\frac {a^3\,d^3}{2}-\frac {3\,a^2\,b\,c^3}{2}+\frac {9\,a^2\,b\,c\,d^2}{2}+\frac {9\,a\,b^2\,c^2\,d}{2}-\frac {3\,a\,b^2\,d^3}{2}+\frac {b^3\,c^3}{2}-\frac {3\,b^3\,c\,d^2}{2}\right )}{f}-\frac {{\mathrm {tan}\left (e+f\,x\right )}^3\,\left (\frac {b^3\,d^3}{3}-b\,d\,\left (a^2\,d^2+3\,a\,b\,c\,d+b^2\,c^2\right )\right )}{f}+\frac {{\mathrm {tan}\left (e+f\,x\right )}^2\,\left (\frac {a^3\,d^3}{2}+\frac {b^3\,c^3}{2}-\frac {3\,b^2\,d^2\,\left (a\,d+b\,c\right )}{2}+\frac {9\,a\,b^2\,c^2\,d}{2}+\frac {9\,a^2\,b\,c\,d^2}{2}\right )}{f}+\frac {\mathrm {atan}\left (\frac {\mathrm {tan}\left (e+f\,x\right )\,\left (a\,c-b\,d\right )\,\left (-a^2\,c^2+3\,a^2\,d^2+8\,a\,b\,c\,d+3\,b^2\,c^2-b^2\,d^2\right )}{a^3\,c^3-3\,a^3\,c\,d^2-9\,a^2\,b\,c^2\,d+3\,a^2\,b\,d^3-3\,a\,b^2\,c^3+9\,a\,b^2\,c\,d^2+3\,b^3\,c^2\,d-b^3\,d^3}\right )\,\left (a\,c-b\,d\right )\,\left (-a^2\,c^2+3\,a^2\,d^2+8\,a\,b\,c\,d+3\,b^2\,c^2-b^2\,d^2\right )}{f}+\frac {b^3\,d^3\,{\mathrm {tan}\left (e+f\,x\right )}^5}{5\,f}+\frac {3\,b^2\,d^2\,{\mathrm {tan}\left (e+f\,x\right )}^4\,\left (a\,d+b\,c\right )}{4\,f}
\]
[In]
int((a + b*tan(e + f*x))^3*(c + d*tan(e + f*x))^3,x)
[Out]
(tan(e + f*x)*(b^3*d^3 + 3*a*c*(a^2*d^2 + b^2*c^2 + 3*a*b*c*d) - 3*b*d*(a^2*d^2 + b^2*c^2 + 3*a*b*c*d)))/f - (
log(tan(e + f*x)^2 + 1)*((a^3*d^3)/2 + (b^3*c^3)/2 - (3*a^2*b*c^3)/2 - (3*a*b^2*d^3)/2 - (3*a^3*c^2*d)/2 - (3*
b^3*c*d^2)/2 + (9*a*b^2*c^2*d)/2 + (9*a^2*b*c*d^2)/2))/f - (tan(e + f*x)^3*((b^3*d^3)/3 - b*d*(a^2*d^2 + b^2*c
^2 + 3*a*b*c*d)))/f + (tan(e + f*x)^2*((a^3*d^3)/2 + (b^3*c^3)/2 - (3*b^2*d^2*(a*d + b*c))/2 + (9*a*b^2*c^2*d)
/2 + (9*a^2*b*c*d^2)/2))/f + (atan((tan(e + f*x)*(a*c - b*d)*(3*a^2*d^2 - a^2*c^2 + 3*b^2*c^2 - b^2*d^2 + 8*a*
b*c*d))/(a^3*c^3 - b^3*d^3 - 3*a*b^2*c^3 + 3*a^2*b*d^3 - 3*a^3*c*d^2 + 3*b^3*c^2*d + 9*a*b^2*c*d^2 - 9*a^2*b*c
^2*d))*(a*c - b*d)*(3*a^2*d^2 - a^2*c^2 + 3*b^2*c^2 - b^2*d^2 + 8*a*b*c*d))/f + (b^3*d^3*tan(e + f*x)^5)/(5*f)
+ (3*b^2*d^2*tan(e + f*x)^4*(a*d + b*c))/(4*f)